function checkU () {
  let state = false
  const token = localStorage.getItem('token')
  if (token) {
    state = true
    console.log('登录')
  } else {
    state = false
    console.log('未登录')
  }
  return state
}
export default checkU
